package com.beiben.experiment.repair.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维修信息对象 experiment_repair
 * 
 * @author 熊国强
 * @date 2020-11-11
 */
public class Repair extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维修ID */
    private Long repairId;

    /** 关联ID */
    @Excel(name = "关联ID")
    private Long relId;

    private Long [] relIds;

    /** 表名 */
    @Excel(name = "表名")
    private String tableName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishTime;

    /** 实际结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date relFinishTime;

    /** 维修内容 */
    @Excel(name = "维修内容")
    private String content;

    /** 是否完成 Y：完成，N：未完成*/
    private String isFinish;

    /* 设备使用状态 */
    private String equipmentUseState;

    /* 设备状态*/
    private String equipmentState;

    public void setRepairId(Long repairId) 
    {
        this.repairId = repairId;
    }

    public Long getRepairId() 
    {
        return repairId;
    }
    public void setRelId(Long relId) 
    {
        this.relId = relId;
    }

    public Long getRelId() 
    {
        return relId;
    }
    public void setTableName(String tableName) 
    {
        this.tableName = tableName;
    }

    public String getTableName() 
    {
        return tableName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setFinishTime(Date finishTime) 
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() 
    {
        return finishTime;
    }
    public void setRelFinishTime(Date relFinishTime) 
    {
        this.relFinishTime = relFinishTime;
    }

    public Date getRelFinishTime() 
    {
        return relFinishTime;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public Long[] getRelIds() {
        return relIds;
    }

    public void setRelIds(Long[] relIds) {
        this.relIds = relIds;
    }

    public String getIsFinish() {
        return isFinish;
    }

    public void setIsFinish(String isFinish) {
        this.isFinish = isFinish;
    }

    public String getEquipmentUseState() {
        return equipmentUseState;
    }

    public void setEquipmentUseState(String equipmentUseState) {
        this.equipmentUseState = equipmentUseState;
    }

    public String getEquipmentState() {
        return equipmentState;
    }

    public void setEquipmentState(String equipmentState) {
        this.equipmentState = equipmentState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("repairId", getRepairId())
            .append("relId", getRelId())
            .append("tableName", getTableName())
            .append("startTime", getStartTime())
            .append("finishTime", getFinishTime())
            .append("relFinishTime", getRelFinishTime())
            .append("content", getContent())
            .toString();
    }
}
